

    <form class="form-signin" name="loginForm">
        <p>Welcome:{{user.mail}}</p>
        <h2 class="form-signin-heading">Please sign in</h2>
        <input type="text" class="form-control" placeholder="Email address" required ng-model="user.mail">
        <input type="password" class="form-control" placeholder="Password" required ng-model="user.pass">
        <label class="checkbox">
            <input type="checkbox" value="remember-me"> Remember me
        </label>
        <button class="btn btn-large btn-primary" type="submit" ng-disabled="loginForm.$invalid" ng-click="login(user)">Sign in</button>
    </form>

